package com.liumulingyu.action;

import com.liumulingyu.dao.UserDao;
import com.liumulingyu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 作者：刘杰（QQ:770161055,WeChat:yjso0826）
 * 时间： 2018/7/18
 */
@RestController
@RequestMapping(value = "user/")
public class UserAction {
    @Autowired
    private UserService userService;
    @RequestMapping("userList")
    public String userList() {
        System.out.println("打印日志-->>"+userService.getUserList().toString());
        return "index";
    }
}
